package com.chagee.channel.api.bo.lark;

import com.alibaba.fastjson.annotation.JSONField;
import java.io.Serializable;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author: chang.jiawei
 * @date: 2024/06/03
 */
@Data
@Accessors(chain = true)
public class ApprovalCommentListRequest implements Serializable {

    private static final long serialVersionUID = 5845332667441422141L;
    @JSONField(name = "instance_code")
    @NotBlank(message = "instanceCode不能为空")
    private String instanceCode;

    @JSONField(name = "user_id")
    @NotBlank(message = "userId不能为空")
    private String userId;

    @NotNull(message = "请指定分页大小")
    private Integer pageSize;

    /**
     * 分页标记，第一次请求不填，表示从头开始遍历；分页查询结果还有更多项时会同时返回新的 page_token，下次遍历可采用该 page_token 获取查询结果
     */
    private String pageToken;
}
